local nya__jizhi = fk.CreateSkill {

  name = "nya__jizhi",

  tags = {  },

}



nya__jizhi:addEffect(fk.CardUsing, {
  name = "nya__jizhi",
  anim_type = "drawcard",
  events = {fk.CardUsing},
  can_trigger = function(self, event, target, player, data)
    return target == player and player:hasSkill(nya__jizhi.name) and data.card.type == Card.TypeTrick
  end,
  on_use = function(self, event, target, player, data)
    player:drawCards(1, nya__jizhi.name)
  end,
})

nya__jizhi:addEffect(fk.CardUsing, {
  name = "#nya__jizhi_trigger",
  --nya__jizhi,
  anim_type = "drawcard",
  events = {fk.CardUsing},
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill("nya__jizhi") and not player:hasSkill("nya__play", true) and target ~= player and data.card.type == Card.TypeTrick and player:usedSkillTimes(nya__jizhi.name, Player.HistoryTurn) == 0
  end,
  on_cost = Util.TrueFunc,
  on_use = function(self, event, target, player, data)
    player:drawCards(1, "nya__jizhi")
    player:addSkillUseHistory(nya__jizhi.name, 1)
  end,
})

return nya__jizhi